package com.gxan.renshiservice.impl;

import com.gxan.pojo.SysDept;
import com.gxan.renshidao.SysDeptDao;
import com.gxan.renshidao.impl.SysDeptDaoImpl;
import com.gxan.renshiservice.ServiceDept;

import java.sql.SQLException;
import java.util.List;

public class ServiceDeptImpl implements ServiceDept {
    @Override
    public List<SysDept> findDept() throws SQLException {
        SysDeptDao sysDeptDao = new SysDeptDaoImpl();
        List<SysDept> list = sysDeptDao.findDept();
        return list;
    }
}
